'use strict';

module.exports = app => {
  const { router, controller } = app;
  router.get('/blog/index', controller.blog.index.index);
  router.get('/blog/allList', controller.blog.index.allList);
  router.get('/blog/detail/:id', controller.blog.index.detail);
  router.get('/blog/typeList', controller.blog.index.typeList);
  router.get('/blog/listByType/:type_id', controller.blog.index.listByType);
  router.get('/blog/getVisitor', controller.blog.index.getVisitor);
};
